var Todo = {
    Utility: {},
    entities: {},
    DEBUG_MODE: true
};

/**
 * basic inheritance function
 */
Todo.Utility.inherit = function (Child, Parent)
{
    var F = function () { };
    F.prototype = Parent.prototype;
    var f = new F();

    for (var prop in Child.prototype) f[prop] = Child.prototype[prop];
    Child.prototype = f;
    Child.prototype.sup = Parent.prototype;
}

/*
 * class wrapper
 */
Todo.Utility.createClass = function (initializer, methods, parent) {
    /* if protoClass defined extend construct from Parent class */
    if (parent) {
        steelavto.Utility.inherit(initializer, parent);
    }

    for (var key in methods) {
        initializer.prototype[key] = methods[key];
    }

    return initializer;
}